package com.bean;

import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;


/**
 * ParkManager entity. @author MyEclipse Persistence Tools
 */

public class ParkManager  implements java.io.Serializable {

    // Fields    

     /** serialVersionUID*/
	private static final long serialVersionUID = 9002095414122007197L;
	private Long userId;
	private String userName;
	private String userPasswd;
	private String realName;
	private String introduction;
	private Double accountBalance;
	private String bankAccount;
	private Short role;
	private RoleInfo roleInfo;
	private String photo;
	private String roleName;
	private String phone;
	private String idCard;
	private String loginSequence;
	private String userToken;
	private String clientId;
	private Long superiorOfficer;
	private Short duty;
	private Timestamp loginTime;
	private Timestamp createTime;
	private Timestamp updateTime;
	private Short status;
	private String statusName;
	private List<Parkinfo> list = new ArrayList<Parkinfo>();
	private Set parkinfos = new HashSet(0);
	private Set parkOrdersForReservationOperatorId = new HashSet(0);
	private Set parkAccountRecords = new HashSet(0);
	private Set managerWorkSheets = new HashSet(0);
	private Set parkOrdersForLeaveOperatorId = new HashSet(0);
	private Set parkManagerLogs = new HashSet(0);
	private Set drawMoneyRequestRecords = new HashSet(0);
	private Set parkOrdersForEnterOperatorId = new HashSet(0);

	private Integer year;
 	private Integer month;
 	private Integer day;
 	private Long sumcount;
 	
    // Constructors

    /** default constructor */
 	public ParkManager() {}
    public ParkManager(Integer year,Integer month,Integer day,Long sumcount,Short status) {
    	this.year=year;
    	this.month=month;
    	this.day=day;
    	this.sumcount=sumcount;
    	this.status=status;
    }
    public ParkManager(Integer year,Integer month,Long sumcount,Short status) {
    	this.year=year;
    	this.month=month;
    	this.sumcount=sumcount;
    	this.status=status;
    }
	/** minimal constructor */
    public ParkManager(String userName, String userPasswd, String realName, Short role, String phone, Timestamp createTime, Timestamp updateTime, Short status) {
        this.userName = userName;
        this.userPasswd = userPasswd;
        this.realName = realName;
        this.role = role;
        this.phone = phone;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.status = status;
    }
    
    /** full constructor */
    public ParkManager(String userName, String userPasswd, String realName, String introduction, Double accountBalance,String photo,String bankAccount, Short role, String phone, String idCard, String loginSequence, String userToken, String clientId, Long superiorOfficer, Short duty, Timestamp loginTime, Timestamp createTime, Timestamp updateTime, Short status, Set parkinfos, Set parkOrdersForReservationOperatorId, Set parkAccountRecords, Set managerWorkSheets, Set parkOrdersForLeaveOperatorId, Set parkManagerLogs, Set drawMoneyRequestRecords, Set parkOrdersForEnterOperatorId) {
        this.userName = userName;
        this.userPasswd = userPasswd;
        this.photo = photo;
        this.realName = realName;
        this.introduction = introduction;
        this.accountBalance = accountBalance;
        this.bankAccount = bankAccount;
        this.role = role;
        this.phone = phone;
        this.idCard = idCard;
        this.loginSequence = loginSequence;
        this.userToken = userToken;
        this.clientId = clientId;
        this.superiorOfficer = superiorOfficer;
        this.duty = duty;
        this.loginTime = loginTime;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.status = status;
        this.parkinfos = parkinfos;
        this.parkOrdersForReservationOperatorId = parkOrdersForReservationOperatorId;
        this.parkAccountRecords = parkAccountRecords;
        this.managerWorkSheets = managerWorkSheets;
        this.parkOrdersForLeaveOperatorId = parkOrdersForLeaveOperatorId;
        this.parkManagerLogs = parkManagerLogs;
        this.drawMoneyRequestRecords = drawMoneyRequestRecords;
        this.parkOrdersForEnterOperatorId = parkOrdersForEnterOperatorId;
    }

   
    // Property accessors

    public Long getUserId() {
        return this.userId;
    }
    
    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return this.userName;
    }
    
    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPasswd() {
        return this.userPasswd;
    }
    
    public void setUserPasswd(String userPasswd) {
        this.userPasswd = userPasswd;
    }

    public String getRealName() {
        return this.realName;
    }
    
    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getIntroduction() {
        return this.introduction;
    }
    
    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    public Double getAccountBalance() {
        return this.accountBalance;
    }
    
    public void setAccountBalance(Double accountBalance) {
        this.accountBalance = accountBalance;
    }

    public String getBankAccount() {
        return this.bankAccount;
    }
    
    public void setBankAccount(String bankAccount) {
        this.bankAccount = bankAccount;
    }

    public Short getRole() {
        return this.role;
    }
    
    public void setRole(Short role) {
        this.role = role;
        //用户角色（1：车场管理员；2：停车场后台普通管理员；3:停车场后台超级管理员）
        switch(role){
        case 1:
        	this.setRoleName("车场管理员");
        	break;
        case 2:
        	this.setRoleName("停车场后台普通管理员");
        	break;
        case 3:
        	this.setRoleName("停车场后台超级管理员");
        	break;
        default:
        	this.setStatusName("未知");
        }
    }

    public String getPhone() {
        return this.phone;
    }
    
    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getIdCard() {
        return this.idCard;
    }
    
    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getLoginSequence() {
        return this.loginSequence;
    }
    
    public void setLoginSequence(String loginSequence) {
        this.loginSequence = loginSequence;
    }

    public String getUserToken() {
        return this.userToken;
    }
    
    public void setUserToken(String userToken) {
        this.userToken = userToken;
    }

    public String getClientId() {
        return this.clientId;
    }
    
    public void setClientId(String clientId) {
        this.clientId = clientId;
    }

    public Long getSuperiorOfficer() {
        return this.superiorOfficer;
    }
    
    public void setSuperiorOfficer(Long superiorOfficer) {
        this.superiorOfficer = superiorOfficer;
    }

    public Short getDuty() {
        return this.duty;
    }
    
    public void setDuty(Short duty) {
        this.duty = duty;
    }

    public Timestamp getLoginTime() {
        return this.loginTime;
    }
    
    public void setLoginTime(Timestamp loginTime) {
        this.loginTime = loginTime;
    }

    public Timestamp getCreateTime() {
        return this.createTime;
    }
    
    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public Timestamp getUpdateTime() {
        return this.updateTime;
    }
    
    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }

    public Short getStatus() {
        return this.status;
    }
    
    public void setStatus(Short status) {
		this.status = status;
		//'用户状态（-1：已删除；0：锁定；1：正常）'
		switch(status){
		case 1:
			this.setStatusName("正常");
			break;
		case 0:
			this.setStatusName("锁定");
			break;
		case -1:
			this.setStatusName("已删除");
			break;
		default:
			this.setStatusName("异常");
		}
	}

    public Set getParkinfos() {
        return this.parkinfos;
    }
    
    public void setParkinfos(Set parkinfos) {
        this.parkinfos = parkinfos;
    }

    public Set getParkOrdersForReservationOperatorId() {
        return this.parkOrdersForReservationOperatorId;
    }
    
    public void setParkOrdersForReservationOperatorId(Set parkOrdersForReservationOperatorId) {
        this.parkOrdersForReservationOperatorId = parkOrdersForReservationOperatorId;
    }

    public Set getParkAccountRecords() {
        return this.parkAccountRecords;
    }
    
    public void setParkAccountRecords(Set parkAccountRecords) {
        this.parkAccountRecords = parkAccountRecords;
    }

    public Set getManagerWorkSheets() {
        return this.managerWorkSheets;
    }
    
    public void setManagerWorkSheets(Set managerWorkSheets) {
        this.managerWorkSheets = managerWorkSheets;
    }

    public Set getParkOrdersForLeaveOperatorId() {
        return this.parkOrdersForLeaveOperatorId;
    }
    
    public void setParkOrdersForLeaveOperatorId(Set parkOrdersForLeaveOperatorId) {
        this.parkOrdersForLeaveOperatorId = parkOrdersForLeaveOperatorId;
    }

    public Set getParkManagerLogs() {
        return this.parkManagerLogs;
    }
    
    public void setParkManagerLogs(Set parkManagerLogs) {
        this.parkManagerLogs = parkManagerLogs;
    }

    public Set getDrawMoneyRequestRecords() {
        return this.drawMoneyRequestRecords;
    }
    
    public void setDrawMoneyRequestRecords(Set drawMoneyRequestRecords) {
        this.drawMoneyRequestRecords = drawMoneyRequestRecords;
    }

    public Set getParkOrdersForEnterOperatorId() {
        return this.parkOrdersForEnterOperatorId;
    }
    
    public void setParkOrdersForEnterOperatorId(Set parkOrdersForEnterOperatorId) {
        this.parkOrdersForEnterOperatorId = parkOrdersForEnterOperatorId;
    }

	/**
	 * @return the roleName
	 */
	public String getRoleName() {
		return roleName;
	}

	/**
	 * @param roleName the roleName to set
	 */
	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	/**
	 * @return the roleInfo
	 */
	public RoleInfo getRoleInfo() {
		return roleInfo;
	}

	/**
	 * @param roleInfo the roleInfo to set
	 */
	public void setRoleInfo(RoleInfo roleInfo) {
		this.roleInfo = roleInfo;
	}

	/**
	 * @return the list
	 */
	public List<Parkinfo> getList() {
		return list;
	}

	/**
	 * @param list the list to set
	 */
	public void setList(List<Parkinfo> list) {
		this.list = list;
	}

	/**
	 * @return the statusName
	 */
	public String getStatusName() {
		return statusName;
	}

	/**
	 * @param statusName the statusName to set
	 */
	public void setStatusName(String statusName) {
		this.statusName = statusName;
	}

	public String getPhoto() {
		return photo;
	}

	public void setPhoto(String photo) {
		this.photo = photo;
	}

	public Integer getYear() {
		return year;
	}

	public void setYear(Integer year) {
		this.year = year;
	}

	public Integer getMonth() {
		return month;
	}

	public void setMonth(Integer month) {
		this.month = month;
	}

	public Integer getDay() {
		return day;
	}

	public void setDay(Integer day) {
		this.day = day;
	}
	public Long getSumcount() {
		return sumcount;
	}
	public void setSumcount(Long sumcount) {
		this.sumcount = sumcount;
	}
}